package com.igeek.boot.config;

import com.igeek.boot.interceptor.AuthInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @package com.igeek.boot.config
 * @Description mvc的配置类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2024/1/3 14:10
 */
//@Configuration
public class MVCConfig {
    //@Autowired
    //private AuthInterceptor authInterceptor;

    //配置token拦截器
    //@Bean
    //public WebMvcConfigurer webMvcConfigurer(){
    //    return new WebMvcConfigurer() {
    //        //添加拦截器
    //        @Override
    //        public void addInterceptors(InterceptorRegistry registry) {
    //            registry.addInterceptor(authInterceptor)
    //                    .addPathPatterns("/wisdom_factory/**")
    //                    .excludePathPatterns("/wisdom_factory/users/login");
    //        }
    //    };
    //}
}
